package com.htl.mapper;

import com.htl.entity.ProductInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;

/**
 * <p>
 * 商品表 Mapper 接口
 * </p>
 *
 * @author 韩天乐
 * @since 2021-11-13
 */
@Repository
public interface ProductInfoMapper extends BaseMapper<ProductInfo> {
    public BigDecimal findPriceById(Integer id);
    public Integer findStockById(Integer id);
    public Integer updateStockById(Integer id,Integer stock);
    public Boolean updateStatusById(Integer id,Integer status);

}
